package wiBase.baseObject;

import java.util.Hashtable;

public class PacketHeader {
	public String type;
	private Hashtable<Object, Object> fields=new Hashtable<>();
	
	public PacketHeader() {
		type="";
		fields=new Hashtable<>();
	}
	public void addField(String name,String value){
		fields.put(name, value);
	}
	public String getField(String name){
		return fields.get(name).toString();
	}
	@Override
	public String toString() {
		return "PacketHeader [type=" + type + ", fields=" + fields + "]";
	}
	
}
